package com.ys.job;

import com.ys.service.NotifyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 通知交易所 冲提状态
 */
@Component
@Slf4j
public class NotifyJob {

    @Autowired
    private NotifyService notifyService;

    /**
     *
     */
    @Scheduled(cron = "15 * * * * ?")
    public void notifyDeposit(){
        log.info("通知交易所定时任务,start");
        notifyService.notifyDeposit();
        notifyService.notifyWithdraw();
        log.info("通知交易所定时任务,end");
    }

}
